#ifndef CONFIGUTIL_H
#define CONFIGUTIL_H

#include <baseutil.h>

class ConfigUtil : public BaseUtil
{
public:
    static QString appConfigDir();
    static QString appConfigFile(const QString &filename);

    static QString getAppRepoConfig();
    static void setAppRepoConfig(QString &repoPath);

    static QVariantMap getAppSettingsConfig();
    static void setAppSettingsConfig(const QVariantMap &config);

private:
    static QString read(const QString &filepath);
    static void write(const QString &filepath, const QString &content);
};

#endif // CONFIGUTIL_H
